package com.xmim.core.entity;


import com.xmim.core.util.DateUtil;

/**
 * 请求封装类
 */
public class Request extends HeaderBody {
    public final static String REQUEST_ID = "requestId";
    public final static String REQUEST_TIME = "requestTime";


    public Request(String requestId, String sessionId) {
        super();
        this.headers.put(REQUEST_ID, requestId);
        this.headers.put(SESSION_ID, sessionId);
        this.headers.put(REQUEST_TIME, DateUtil.getDate(DateUtil.TIME_YMDHMSS));
    }

    public String getSessionId() {
        return (String) this.headers.get(SESSION_ID);
    }

    public String getRequestId() {
        return (String) this.headers.get(REQUEST_ID);
    }

    public String getRequestTime() {
        return (String) this.headers.get(REQUEST_TIME);
    }


}
